// 部门管理，部门列表加载按键配置
import {store} from '@/store/index'

// 总公司
const totalBtns = [

    {
        icon: 'icon-company',
        type: 'text primary',
        fn (data){
            store.dispatch('organizationStore/departmentEventIssue', {data, action: 'create', type:'company'})
        }
    },
    
];

// 分公司
const companyBtns = [

    {
        icon: 'icon-edit',
        type: 'text primary',
        fn (data){
            store.dispatch('organizationStore/departmentEventIssue', {data, action: 'edit', type:'company'})
        }
    },
    {   
        icon: 'icon-loudong',
        type:'text primary',
        fn (data){
            store.dispatch('organizationStore/departmentEventIssue', {data, action: 'create', type:'department'})
        }
    }
    
];

// 部门
const departmentBnts = [
    
    {
        icon: 'icon-edit',
        type: 'text primary',
        fn (data){
            store.dispatch('organizationStore/departmentEventIssue', {data, action: 'edit', type:'department'})
        }
    },
    {   
        icon: 'icon-register',
        type:'text primary',
        fn (data){
            store.dispatch('organizationStore/departmentEventIssue', {data, action: 'create', type:'personal'})
        }
    }
    
]



export {

    totalBtns,
    companyBtns,
    departmentBnts
    
}